import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,

  children: [{
    // 默认的子路由
    path: '',
    name: 'employees',
    component: () =>
      import ('@/views/employees'),
    // meta:控制左侧菜单
    meta: { title: '员工', icon: 'people' }
  }, {
    path: 'upload-excel',
    component: () => import('@/views/excel'),
    hidden: true
  },
  {
    path: ':id',
    component: () => import('@/views/employees/detail.vue'),
    hidden: true
  }, {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true

  }

  ] }
